home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Drawing / ForegroundColorMaintainer.h < prev    next >
Text File  |  1997-06-28  |  432b  |  26 lines

  1. // ForegroundColorMaintainer.h
  2.  
  3. #ifndef ForegroundColorMaintainer_h
  4. #define ForegroundColorMaintainer_h
  5.  
  6. #ifndef GrafPortObject_h
  7. #include "GrafPortObject.h"
  8. #endif
  9.  
  10. class ForegroundColorMaintainer
  11.   {
  12.     private:
  13.         GrafPortObject& port;
  14.         RGBColor old;
  15.         
  16.     public:
  17.         ForegroundColorMaintainer();
  18.         ForegroundColorMaintainer( const RGBColor& toUse );
  19.  
  20.         ~ForegroundColorMaintainer()    { Reset(); }
  21.         
  22.         void Reset() const;
  23.   };
  24.  
  25. #endif
  26.